export type EnvType = 'dev' | 'fat' | 'sit' | 'prod';
export type ProjectType = 'ssr' | 'spa' | 'microService';

export type EnvLocation = {
  env: EnvType;
  host: string;
  path?: string;
  sub?: string;
};

export type TableListItem = {
  projectId: string;
  groupId?: string;
  key: number;
  projectName: string; // 项目名称
  projectType: ProjectType; // 项目类型
  envLocation: EnvLocation[]; // 环境对应的URL
  projectGitUrl: string; // git地址
  createTime: number;
  rewrite: boolean;
};

export interface AppParams extends TableListItem {
  pageSize?: number;
  current?: number;
}
